package com.peanut.persistence;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.peanut.model.Resource;

public interface ResourceMapper {

	public List<Resource> queryTopResource(String name);
	
	/**
	 * 删除指定ID的模块和它的子模块
	 */
	public void removeNodeAndChildren(Integer moduleId);
	
	public List<Resource> queryAllModules(String type);
	
	public List<Resource> queryTopResourceByAccount(String account);
	
	public List<Resource> querySubResourceByAccount(Map param);
	
	public List<HashMap<String, String>> queryUrlResourceWithRole(String param);
}
